﻿
<!doctype html>
<html>
<head>
<title>项目编辑</title> <#include "../../commonUse.html"/>

<script type="text/javascript"
	src="${ctx.contextPath}/js/jquery.form.js"></script>
	
<link href="${ctx.contextPath}/css/city-picker.css" rel="stylesheet" />
<script src="${ctx.contextPath}/js/city-picker.data.js"></script>
<script src="${ctx.contextPath}/js/city-picker.js"></script>

<script src="${ctx.contextPath}/pages/business/project/js/project_update.js"></script>
<script src="${ctx.contextPath}/js/validator.js"></script>
<script>
	var recId='${project.REC_ID}';
	var areaName="${project.AREA_LNAME}" ;
	var areaCode="${project.AREA_CODE}";
</script>
</head>
<body>
	<div class="list-template">
		<div class="m-head m-head-p">
			<div class="left">
				<label class="title">项目编辑</label>
			</div>
			<div class="right">
				<div class="flow"></div>
				<!--     <div class="f i-setting f_setting" id="tradeTypeID"></div> -->
			</div>
			<img class="panel-close" src="../images/card-close.png"
				onclick="parent.closeDialogWin();" />
		</div>
		<div class="m-page">
			<form method="post" id="form1" name="form1">
				<div class="l-edit" id='main_div'>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<input type="hidden" id="recId" value="${project.REC_ID}" name="recId" ></input>
						<tr>
							<td class="font" width="30%">项目名称：<span class="empt">*</span></td>
							<td width="70%"><input type="text" id="name" value="${project.NAME}"
								name="name" class="text" maxlength="30" dataType="LimitA"
								msg="项目名称不能为空且少于30个字节."></input></td>
						</tr>
						<tr>
							<td class="font" width="30%">承建方：<span class="empt">*</span></td>
							<td width="70%"><input type="text" id="contractor" value="${project.CONTRACTOR}"
								name="contractor" class="text" maxlength="30" dataType="LimitA" 
								msg="承建方不能为空且少于30个字节." ></input></td>
						</tr>
						<tr>
							<td class="font" width="30%">项目开始日期：<span class="empt">*</span></td>
							<td width="70%">
								<input readonly="readonly" name="bgtime"  value="${project.BGTIME}" style="width: 200px;"
								id="bgtime" type="text" class="layui-input" class="text" dataType="LimitA"  msg="开始时间不能为空."
								onclick="WdatePicker({maxDate:'#F{$dp.$D(\'edtime\')}'})" />
							</td>
						</tr>
						<tr>
							<td class="font" width="30%">项目结束日期：<span class="empt">*</span></td>
							<td width="70%">
								<input readonly="readonly" name="edtime"  value="${project.EDTIME}" style="width: 200px;"
								id="edtime" type="text" class="layui-input" class="text" dataType="LimitA"  msg="结束时间不能为空."
								onclick="WdatePicker({minDate:'#F{$dp.$D(\'bgtime\')}'})" />
							</td>
						</tr>
			
						<tr>
							<td class="font" width="30%">工程地点：</td>
							<td width="70%">
							<div class="city-picker-box">
								<input type="text"  id="areaCode" name="areaCode"  class="text"  placeholder="${project.AREA_LNAME}"
								data-code="${project.AREA_CODE}" value="" maxlength="50">
							</div>
							<input type="text" value="${project.ADDR}" id="addr" name="addr" class="text" 
							style="margin:5px 0;width:100%;max-width:500px;" maxlength="50" placeholder="请输入详细地址"></td>
						</tr>
						
						<tr>
							<td class="font" width="30%">当前工程合同：</td>
							<td width="70%">
								<div id="contractList">
								</div>
							</td>
						</tr>
						<tr>
							<td class="font" width="30%">合同扫描件：</td>
							<td width="70%"><a id="file-name"></a>
								<div class="layui-box layui-upload-button">
									<input onchange="uploadFile();" type="file" name="contract" id="contract" multiple="multiple"
										accept="image/png,image/gif,image/jpeg"	class="layui-upload-file"> <span
										class="layui-upload-icon"> <i class="layui-icon">&#xe608;</i>选择图片
									</span>
								</div></td>
						</tr> 
	
			
					</table>
					<div class="edit-btn">
						<ul>
							<li id="checkSaveBtn" class="btn" onclick="projectSave();">保 存</li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</form>
		</div>
	</div>
</body>
<script>
	$('#areaCode').citypicker();
</script>
</html>